package com.freesky.biz.rights.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.freesky.biz.rights.domain.ArrearsDetailEntity;
import com.freesky.biz.rights.domain.ArrearsFileEntity;
import com.freesky.biz.rights.mapper.ArrearsFileMapper;
import com.freesky.biz.rights.mapper.EncryptCodeMapper;
import com.freesky.biz.rights.service.IArrearsFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArrearsFileServiceImpl extends ServiceImpl<ArrearsFileMapper, ArrearsFileEntity>  implements IArrearsFileService {

    @Autowired
    private ArrearsFileMapper arrearsFileMapper;

    @Override
    public Page selectFilePage(Page page, ArrearsFileEntity entity) {
        return arrearsFileMapper.selectFilePage(page, entity);
    }

    @Override
    public int batchAddArrearsDetail(List<ArrearsDetailEntity> arrearsDetailList) {
        return arrearsFileMapper.batchAddArrearsDetail(arrearsDetailList);
    }

    @Override
    public int deleteBatchByIds(String[] ids) {
        return arrearsFileMapper.deleteBatchByIds(ids);
    }
}
